<template>
  <div class="message banner">
    <el-container>
      <el-aside width="200px">
        <h4 style="text-align:center;margin-bottom:10px;">
          <i class="el-icon-s-promotion"></i>
          <span>消息中心</span>
        </h4>
        <el-menu
      default-active="1"
      class="el-menu-vertical-demo"
      @open="handleOpen"
      @close="handleClose">
      <el-menu-item index="1" @click="toMain('/message/replyMe')">
        <i class="iconfont icon-dian"></i>
        <span slot="title">回复我的</span>
      </el-menu-item>
      <!-- <el-menu-item index="2"  @click="toMain('/message/atMe')">
        <i class="iconfont icon-dian"></i>
        <span slot="title">@ 我的&nbsp;&nbsp;</span>
      </el-menu-item> -->
      <!-- <el-menu-item index="3"  @click="toMain('/message/receivedLikes')">
        <i class="iconfont icon-dian"></i>
        <span slot="title">收到的赞</span>
      </el-menu-item> -->
      <el-menu-item index="4" @click="toMain('/message/systemNotice')">
        <i class="iconfont icon-dian"></i>
        <span slot="title">系统通知</span>
      </el-menu-item>
    </el-menu>
      </el-aside>
      <el-main>
        <router-view/>
      </el-main>
    </el-container>
  </div>
</template>
<script>
export default {
  data(){
    return{

    }
  },
  created(){
    this.$router.push("/message/replyMe")
  },
  methods:{
      toMain(path){
        this.$router.push(path)
      },
      handleOpen(key, keyPath) {
        console.log(key, keyPath);
      },
      handleClose(key, keyPath) {
        console.log(key, keyPath);
      }
  }
}
</script>
<style scoped>
.message {
  margin-top: 30px;
}
.el-menu-vertical-demo {
  text-align: center;
}
</style>
